from GLMsAPIWrapper import GLMsAPIWrapper

api_key = "your_api_key"  # 替换为你的API密钥
api_secret = "your_api_secret"  # 替换为你的API密钥密钥
assistant_id = "your_assistant_id"  # 替换为你的智能体ID

wrapper = GLMsAPIWrapper(api_key, api_secret, assistant_id)
response = wrapper.send_message("你好", new_conversation=True)  # 发送消息，开启新对话
print(response)  # 打印响应内容

# 继续对话, 发送消息，继续现有对话。当new_conversation为False时，会继续使用之前保存的conversation_id
response = wrapper.send_message("你好", new_conversation=False)
print(response)  # 打印响应内容
